package com.wanmait.recruitment.service;

import com.wanmait.recruitment.pojo.Resume;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

public interface ResumeService extends CommonService {
    void insert(Resume resume);

    void insert(Integer userinfoId, String name, Integer exId);

    void update(Object object, Integer id);

    Resume findByResumeId(Integer id);

    Object update(Resume resume, Integer id);

    Object insert(Resume resume, Integer id);

    int dataCountResume(Integer id);

    int dataCountWorkEx(Integer id);

    int dataCountItemEx(Integer id);

    int dataCountEducation(Integer id);

    int dataCountWorksShow(Integer id);

    void updateResumeName(String name, Integer id);

    Object updateWorkExId(Integer count, Integer id);


    Object updateWorksShowId(Integer count, Integer id);

    Object updateTiemExId(Integer count, Integer id);

    Object updateEducationId(Integer count, Integer id);

    Object uptedateResume(Resume resume, Integer id);

    Object updateEducation(Resume resume, Integer id);

    Object updateSelf(String slef, Integer id);

//
//    @CacheEvict(value = "resumeCache",allEntries = true)
//    Object updateWork(Resume resume, Integer id);

    Object updateWorksShow(Resume resume, Integer id);

    Object updateWorkEx(Resume resume, Integer id);

    Object updateItemEx(Resume resume, Integer id);

    List<Resume> findByUserinfoId(Integer userinfoId);

    Resume   findAllByIdResume(Integer id);

    List<Resume>selectHopeJobById(Integer id);

    List<Resume>selectWorkExById(Integer id);

    List<Resume>selectItemEXById(Integer id);

    List<Resume>selectEducationById(Integer id);
}
